package com.lottery.material.entity.article;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：文章图片地址信息表
 * Created by 朱正磊 on 2019-04-09 10:40
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_article_picture_info")
public class ArticlePictureInfo extends BaseEntity {

    private static final long serialVersionUID = -8724194497725770542L;

    @Column(columnDefinition = "int(11) comment '文章id（material_article_info表主键）'")
    private Integer articleId;

    @Column(columnDefinition = "int(1) default '1' comment '图片收费类型（1：免费内容；2：收费内容）'")
    private Integer pictureChargeType;

    @Column(columnDefinition = "varchar(100) comment '缩略图地址'")
    private String thumbnailImageUrl;

    @Column(columnDefinition = "varchar(100) comment '原图片地址'")
    private String originalImageUrl;

    @Column(columnDefinition = "int(2) comment '排序'")
    private Integer sort;

}
